<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class RunState extends Model
{
    protected $table = 'mckj_ctrunstate';

    protected $fillable = ['carbarnId', 'carmoveState', 'workState', 'carbarnCode', 'startWorkTime'];

    public $timestamps = false;

    public function carbarn()
    {
        return $this->belongsTo(Carbarn::class, "carbarnId");
    }
}
